<template>
	<view class="padding flex justify-between align-center">
		<view class="flex align-center">
			<text class="iconfont icon-canju"></text>
			<view class="fs-18">
				{{title}}
				<view class="fs-14">{{entitle}}</view>
			</view>
		</view>
		<view class="" style="background-color: black;color: aliceblue;">
			{{countdown}}
		</view>
		<view class="">
			
			{{end}}
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			"title": {
				default: 111
			},
			"entitle": {
				default: 222
			},
			"end": {
				default: 333
			},
			"countdown":{
				
			}
		},
		data() {
			return {
				
			}
		},
		mounted() {
			// this.timer = setInterval(() => {
			// 	this.showtime()
			// }, 1000)
		},
		methods: {
			// showtime() {
			// 	let nowtime = new Date(), //获取当前时间
			// 		endtime = new Date("2022/6/29"); //定义结束时间

			// 	let lefttime = endtime.getTime() - nowtime.getTime(), //距离结束时间的毫秒数
			// 		leftd = Math.floor(lefttime / (1000 * 60 * 60 * 24)), //计算天数
			// 		lefth = Math.floor(lefttime / (1000 * 60 * 60) % 24), //计算小时数
			// 		leftm = Math.floor(lefttime / (1000 * 60) % 60), //计算分钟数
			// 		lefts = Math.floor(lefttime / 1000 % 60); //计算秒数

			// 	this.countdown = leftd + "天" + lefth + ":" + leftm + ":" + lefts; //返回倒计时的字符串

			// 	this.day = leftd; //返回天 
			// 	this.time = lefth; //返回时
			// 	this.minute = leftm; //返回分
			// 	this.second = lefts; //返回秒

			// 	console.log(this.time)
			// },
		}
	}
</script>

<style>
	.icon-canju {
		font-size: 60upx;
	}
</style>
